package com.zty.xiaomi.server.Service.InsuranceOrder;

import com.zty.xiaomi.server.Entity.Insurance.Insurance;
import com.zty.xiaomi.server.Entity.Insurance.InsuranceOrder;
import com.zty.xiaomi.server.Mapper.InsuranceOrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

@Service
public class InsuranceOrderServiceImp implements InsuranceOrderService {

    @Autowired
    private InsuranceOrderMapper insuranceOrderMapper;

    @Override
    public List<InsuranceOrder> getInsuranceOrderByOrderNo(int OrderNo) throws IOException {
        List<InsuranceOrder> list = insuranceOrderMapper.getInsuranceOrderByOrderNo(OrderNo);
        return list;
    }

    @Override
    public List<Insurance> getInsuranceById(String Insuranceids) throws IOException {
        List<Insurance> insurances = insuranceOrderMapper.getInsuranceById(Insuranceids);
        return insurances;
    }
}
